package br.biofoco.p2p.rpc.messaging;

import br.biofoco.p2p.rpc.EndPoint;
import br.biofoco.p2p.rpc.Protocol;

public interface Transport {
	
	void start() throws Exception;
	
	void stop() throws Exception;
	
	boolean isActive();
	
	void setCommandHandler(CommandHandler handler);
	
	TransportClient createClient(EndPoint endpoint) throws Exception;
	
	Protocol getProtocol();

}
